package com.xnyzc.lhy.statistics.controller.search;


import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.statistics.service.search.CapacitySearchService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 运力搜索服务类
 *
 * @author cuixiaojian
 */
@RestController
@RequestMapping("search/capacity")
public class CapacitySearchController {

    @Autowired
    private CapacitySearchService capacitySearchService;

    @ApiModelProperty("保存出车人数统计")
    @GetMapping("/saveDriveOutCount")
    public Rv saveDriveOutCount() {
        return capacitySearchService.saveDriveOutCount();
    }

    @ApiModelProperty("保存司机活跃数量")
    @GetMapping("/saveActiveDriver")
    public Rv saveActiveDriver() {
        return capacitySearchService.saveActiveDriver();
    };

}
